package com.example.myproject.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("torrent")
public class Torrent {
    @TableId(type = IdType.AUTO)
    @TableField("torrent_id")
    private Long torrentId;

    @TableField("torrent_name")
    private String torrentName;

    @TableField("uploader_id")
    private Long uploaderId;

    @TableField("category_id")
    private Long categoryId;

    @TableField("torrent_description")
    private String torrentDescription;

    @TableField("torrent_size")
    private Long torrentSize;

    @TableField("upload_time")
    private LocalDateTime uploadTime;

    @TableField("torrent_status")
    private String torrentStatus;

    @TableField("origin_price")
    private Double originPrice;

    @TableField("download_count")
    private Integer downloadCount;

    @TableField("download_limit")
    private Integer downloadLimit;

    @TableField("score")
    private Double score;

    @TableField("marking_count")
    private Integer markingCount;

    @TableField("torrent_path")
    private String torrentPath;
}
